
/* global setting */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    overflow: hidden;
}

/* remove Chrome's default style */
*:focus {
    outline: none;
}

/* for background part */

img#bg-blur {
    position: absolute;
    width: 1920px;
    max-width: 1920px;
    height: 1080px;
    max-height: 1920px;
    z-index: -100;
    filter: blur(10px);
    overflow: hidden;
}

/* for scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}  
::-webkit-scrollbar-thumb {
    margin: 2px;
    background-color: #444;
    opacity: 0.2;
}

/* header part */

img {
    max-width: 200px;
}

header {

}

/* main part */

main {
    min-width: 300px;
    width: 70%;
    height: 80%;
    margin: 5% auto 0;
}

#login {
    font-size: 20px;
    text-align: center;
}

#login label {
    color: white;
    font-weight: bold;
    margin-right: 20px;
}

#login input {
    font-size: 16px;
    padding: 10px 10px;
    border-radius: 10px;
    background-color: #eef;
    border: 0;
}

#login p {
    display: none;
    padding: 10px;
    font-size: 12px;
    text-align: center;
    color: red;
}

#login button {
    color: white;
    padding: 10px 30px; 
    margin-top: 20px;
    background-color: #dd5862;
    border: 0;
    border-radius: 10px;
}

#logined {
    display: none;
}

/* control panel part */

#control-panel {
    float: left;
    width: 300px;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #222;
}

#user-info {
    height: 40px;
    line-height: 40px;
}

img.logo {
    width: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

#user-info span {
    display: inline-block;
    color: white;
    font-weight: bold;
    line-height: 40px;
    vertical-align: middle;
}

#search input {
    width: 260px;
    padding: 10px;
    margin: 10px 0;
    border: 0;
    color: white;
    background-color: #333;
}

#user-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: hidden;
}

#user-list ul li {
    height: 40px;
    padding: 10px;
    margin: 2px 0;
    color: white;
    background-color: #333;
    cursor: pointer;
}

/*
.offline {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    filter: blur(5px);
}
*/

.offline {
    display: none;
}

#user-list ul li span {
    vertical-align: top;
}

#user-list ul li .counter {
    float: right;
    height: 20px;
    width: 30px;
    padding: 2px 5px;
    margin-right: 5px;
    text-align: center;
    line-height: 20px;
    vertical-align: middle;
    font-size: 12px;
    color: white;
    background-color: red;
    border-radius: 12px;
    display: none;
}

/* chat panel part */

#chat-panel {
    margin-left: 300px;
    height: 100%;
    background-color: #eef;
}

#chat-user {
    width: 90%;
    font-size: 14px;
    margin: 0 auto;
    text-align: center;
    height: 60px;
    line-height: 60px;
    vertical-align: middle;
    border-bottom: 1px solid lightgray;
}

#chat-message {
    width: 100%;
    height: 60%;
}

#chat-message img {
    cursor: pointer;
}

#img-preview {
    position: absolute;
    left: 15%;
    display: none;
    width: 70%;
    max-height: 400px;
    background-color: rgba(0, 0, 0, 0.6);
    text-align: center;
    overflow: auto;
    padding: 20px 0;
    z-index: 100;
}

#img-preview img {
    max-width: 1920px;
}


.chat-message {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-bottom: 1px solid lightgray;
    overflow-x: hidden;
    overflow-y: auto;
}

.chat-message span {
    display: inline-block;
    max-width: 80%;
    word-wrap: break-word;
    padding: 10px;
    margin: 10px 10px 10px 0;
    font-size: 14px;
    text-align: left;
}

.chat-message div.send-by-other {
    text-align: left;
}

.chat-message div.send-by-self {
    text-align: right;
}

.chat-message .send-by-other span {
    background-color: wheat;
}

.chat-message .send-by-self span {
    background-color: lightgreen;
}

.chat-message span.plus-1 {
    display: inline-block;
    width: 16px;
    height: 16px;
    padding: 2px;
    font-size: 10px;
    color: #17b9f1;
    background-color: #eef;
    border: #56c8ec solid 2px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    line-height: 16px;
    vertical-align: center;
}

#send-message {
    position: relative;
    height: 30%;
}

#send-message .utils {
    width: 95%;
    max-width: 95%;
    min-height: 30px;
    height: 10%;
    margin: 10px auto;
}

#send-message i {
    display: inline-block;
    margin: 0 5px;
    color: gray;
    cursor: pointer;
}

#send-message .icons {
    position: absolute;
    left: 15px;
    display: none;
    padding: 10px;
    background-color: #eef;
}

.icon {
    cursor: pointer;
    width: 24px;
    height: 24px;
}

#send-message pre {
    display: block;
    width: 95%;
    max-width: 95%;
    word-wrap: break-word;
    height: 50%;
    margin: 0 auto;
    padding: 0;
    border: 0;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: sans-serif;
    font-size: 14px;
}

#send-message button {
    position: absolute;
    bottom: 20px;
    right: 2.5%;
    cursor: pointer;
    background-color: lightgray;
    border: 0;
    padding: 3px 30px;
}

#send-message button:hover {
    background-color: gray;
}
